package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CashRedSellerMapper;
import com.hcb.micro.dto.CashRedSeller;
import com.hcb.micro.service.ICashRedSellerService;

@Service("CashRedSellerService")
public class CashRedSellerServiceImpl implements ICashRedSellerService {

	@Autowired
	CashRedSellerMapper crsm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return crsm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CashRedSeller record) {
		return crsm.insert(record);
	}

	@Override
	public int insertSelective(CashRedSeller record) {
		return crsm.insertSelective(record);
	}

	@Override
	public CashRedSeller selectByPrimaryKey(Integer id) {
		return crsm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CashRedSeller record) {
		return crsm.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CashRedSeller record) {
		return crsm.updateByPrimaryKey(record);
	}

	@Override
	public List<CashRedSeller> selectByCashRedId(Integer cashRedId) {
		return crsm.selectByCashRedId(cashRedId);
	}

	@Override
	public CashRedSeller selectByCashRedIdAndProductSellerId(Map<String, Object> para) {
		return crsm.selectByCashRedIdAndProductSellerId(para);
	}

}
